<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
    <!-- 全屏 -->
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <!-- 上方栏显示 -->
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <!-- 不自动识别号码 -->
    <meta name="format-detection" content="telephone=no">
    <!-- Include js plugin -->
    <title>视频课详情</title>
    <link rel="stylesheet" href="/static/wap/skin/css/layout.css">
    <link rel="stylesheet" href="/static/wap/skin/css/demos.css">

	<!--我可以删的下面有了-->
	<script src="/static/wap/weui/js/jquery.min.js"></script>
</head>
<script>
var iframe_index;
$(function () {
  $("#buy_now").click(function(){
    is_login = <{$logged_in}>;
    if(is_login > 0){
        $("#buy_form").submit();
    }else{
      alert("你还没登录，请先登录！");
      window.location.href="/logreg";
      //login/iframe
      //  iframe_index = layer.open({
      //  type: 2,
      //  area: ['500px', '400px'],
      //  fixed: false, //不固定
      //  maxmin: false,
      //  shadeClose: true,
      //  title: '登录',
      //  content: ['/login/iframe', 'no']
    //  });

    }
  });

})


function login_success(){
  parent.layer.close(iframe_index);
  window.location.href=window.location.href;
  window.location.reload;
}
</script>
<body>
<header class="brB">
	<div class="h_top">
    	<div class="hLeft"><a href="/" class="icoH icoReturn mt20"></a></div>
    	<div class="hCenter"><span class="tit c-3ac9af">直播课详情</span></div>
    	<div class="hRight"><a href="javascript:;" class="icoH icoShare mt20"></a></div>
    </div>
</header>
<div class="warp "  >
    <div class="product_details">
        <div class="ith_img2">
            <img src="<{$info.course_img}>">
        </div>
    </div>
    <div class="fix b-FFFFFF p20 LH50 brB">
        <div class="layout-box">
            <div class="box-col fs28 fwb"><{$info.title}></div>
        </div>
        <ul class="vd_listXQ line-bottom2 ptb20">
            <li>
                <div class="layout-box">
                    <div class="item">
                        <label class="fs20">价格</label><div class="c-FF0000 ">¥<{$info.price}></div>
                    </div>

                </div>
            </li>
        </ul>
        <ul class="vd_listXQ line-bottom2 ptb20">
            <li>
                <div class="layout-box">
                    <div class="item">
                        <label class="fs20">主讲老师</label><div class="fs28"><{$info.teacher_name}></div>
                    </div>

                </div>
            </li>
        </ul>
        <ul class="vd_listXQ line-bottom2 ptb20">
            <li>
                <div class="layout-box">
                    <div class="item">
                        <label class="fs20">总课时</label><div class="fs28"><{$info.course_time}>课时</div>
                    </div>

                </div>
            </li>
        </ul>
        <ul class="vd_listXQ line-bottom2 ptb20">
            <li>
                <div class="layout-box">
                    <div class="item">
                        <label class="fs20">有效期限</label><div class="fs28"><{$info.effective_time}></div>
                    </div>

                </div>
            </li>
        </ul>
        <ul class="vd_listXQ line-bottom2 ptb20">

            <li>
                <div class="layout-box">
                    <div class="item">
                        <label class="fs20">适合人群</label><div class="fs28"><{$info['suitable']}></div>
                    </div>

                </div>
            </li>

        </ul>
        <!-- <ul class="vd_listXQ line-bottom2 ptb20">
            <li>
                <div class="layout-box">
                    <div class="item">
                        <label class="fs20">学到什么</label><div class="fs28"><{$info['learn_what']}></div>
                    </div>

                </div>
            </li>
        </ul> -->
        <ul class="vd_listXQ line-bottom2 ptb20">
            <li>
                <div class="layout-box">
                    <div class="item">
                        <label class="fs20">课程收益</label><div class="fs28"><{$info['learn_what']}></div>
                    </div>

                </div>
            </li>
        </ul>
    </div>

    <div class="fix b-FFFFFF public-tab">
    	<div class="mt layout-box tac LH80 oh brB">
        	<!-- <div class="sp box-col"><span>课程介绍</span></div> -->
        	<div class="sp box-col"><span>课程详情</span></div>
        	<div class="sp box-col"><span>课程评价（<{$comment_list.count}>）</span></div>
        </div>
        <div class="mc">

        	<div class="tabItem" id="notice">
				<div class="LH100 tac"><span class="c-999999"><{$info.detail}></span></div>
            </div>
        	<div class="tabItem" id="comment">
				<div class="fix p20 b-FFFFFF oh">
                    <{foreach from=$comment_list.result item=item}>
                    <dl class="layout-box brB ptb20">
                        <dt class="mr20">
                            <div class="ith_img" style="width:2rem; height:2rem; background-image:url(<{$item.head_image_url}>)"></div>
                        </dt>
                        <dd class="box-col">
                            <div class=""><{$item.nick}></div>
                            <div><span class="c-666666"><{$item['add_time']|date_format:'%Y-%m-%d'}></span></div>
                            <div><{$item.content}></div>
                        </dd>
                    </dl>
                    <{/foreach}>
                    <{if count($comment_list.result) == 0}>
                    <dl class="fix line-bottom p-b20 m-b20">
                        赞无评论
                    </dl>
                    <{/if}>
                </div>
            </div>
        </div>
    </div>

</div>
<!--star 底下购物按钮-->
<div class="p_fotbtn layout-box  tac brT" style=" margin-top:500px;">
<form action="/order/buy_now" id="buy_form" method="post">
<input type="hidden" name="course_id" value="<{$info.id}>" />
<input type="hidden" name="num" value="1" />
</form>
    <{if $live_status == 1}>
      <{if $is_buy == 1}>
      <div class="box-col"><a href="/video/play/<{$info.id}>" class="b-ff5a00 c-FFFFFF" >课程观看</a></div>
      <{else}>
      <div class="box-col"><a href="javascript:;" class="b-ff5a00 c-FFFFFF" id="buy_now">立即购买</a></div>
      <{/if}>
    <{else}>
    <div class="box-col"><a href="javascript:;">已结束</a></div>
    <{/if}>
</div>
<!--end 底下购物按钮-->
<!-- body 最后 -->
<!-- <script src="/static/wap/weui/js/jquery.min.js"></script> -->
<script src="/static/wap/weui/js/jquery-weui.min.js"></script>
<script src="/static/wap/weui/js/jquery-weui.min.js"></script>
<script src="/static/public/layer/layer.js"></script>
</body>
</html>
